home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / Re FW_CTextBoxShape.1 < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     Re: FW_CTextBoxShape
  2. Sent:        9/9/96 2:08 PM
  3. Received:    9/9/96 2:08 PM
  4. From:        Brad Pettit <bpettit@apple.com>
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. It sounds like you want the behavior of FW_CTextBoxShape::RenderTextBox() 
  10. instead of FW_CTextBoxShape::RenderText(). Think of RenderText as the 
  11. equivalent of a Quickdraw DrawString().
  12.  
  13. --Brad
  14.  
  15. >> 
  16. >> >I have noticed that when FW_CTextBoxShape::RenderText() draws text which
  17. >> >contains a return character (\r), it skips the character. So the drawn text
  18. >> >does not start a new line.
  19. >> >
  20. >> >It seems to me that it ought to recognize it. Can that be fixed for the
  21. >> >next release, I need it!
  22. >> 
  23. >> Are you talking about FW_CTextBoxShape::RenderTextBox(), or 
  24. >> FW_CTextShape::RenderText()? The first one does recognize CR and LF 
  25. >> characters. (I tested this by pasting characters including a CR into ODF 
  26. >> Hello part.)
  27. >> 
  28. >> Mary Boetcher
  29. >> ODF Person
  30. >> 
  31. >
  32. >  Hello part does not work this way for me. For example, if I type
  33. >  these three lines into SimpleText:
  34. >
  35. >     Line1
  36. >     Line2
  37. >     Line3
  38. >
  39. >  then drag&drop (or Cut&Paste) them into Hello part I see this in response:
  40. >
  41. >     Line1Line2Line3
  42. >
  43. >  I am using the latest Hello part from DR5. I have tried it with the editor
  44. >  supplied on the CD and using one I compiled and built myself.
  45. >
  46. >  Why the difference between what Mary is seeing and what I'm seeing?
  47. >
  48. >  I need for this to work, as Mary describes.
  49. >
  50. >Thanks.
  51. >
  52. >-- 
  53. >
  54. >--BobC
  55. >
  56. >  Bob Carpenter
  57. >  Boeing Commercial Airplanes
  58. >  bob.carpenter@boeing.com
  59. >